import request from '@/utils/request'

const api_name = '/admin/process/processType'

export default {

    getPageList(pageNum, pageSize) {
        return request({
            url: `${api_name}/${pageNum}/${pageSize}`,
            method: 'get'
        })
    },
    getById(id) {
        return request({
            url: `${api_name}/get/${id}`,
            method: 'get'
        })
    },
    save(type) {
        return request({
            url: `${api_name}/save`,
            method: 'post',
            data: type
        })
    },
    updateById(type) {
        return request({
            url: `${api_name}/update`,
            method: 'put',
            data: type
        })
    },
    removeById(id) {
        return request({
            url: `${api_name}/remove/${id}`,
            method: 'delete'
        })
    },
    findAll() {
        return request({
          url: `${api_name}/findAll`,
          method: 'get'
        })
      }
}